#ifndef PSFPhotonDetSD_h
#define PSFPhotonDetSD_h 1

#include "PSFPhotonDetHit.hh"

#include "G4VSensitiveDetector.hh"

class G4Step;
class G4HCofThisEvent;

class PSFPhotonDetSD : public G4VSensitiveDetector
{
public:
  PSFPhotonDetSD(G4String);
  ~PSFPhotonDetSD() override = default;

  void Initialize(G4HCofThisEvent *) override;

  G4bool ProcessHits(G4Step *, G4TouchableHistory *) override;

  void EndOfEvent(G4HCofThisEvent *) override;

private:
  PSFPhotonDetHitsCollection *fPhotonDetHitCollection = nullptr;
  G4int fHCID = -1;
};

#endif
